<?php
list($g_usec, $g_sec) = explode(" ",microtime());
define ("t_start", (float)$g_usec + (float)$g_sec);
?>
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
	initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate() ?>/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>


<table align="center" border="0" cellpadding="0" cellspacing="0" width="820px">
  <tbody><tr>
    <td bgcolor="#198b6b" height="80">
	<div id="header"><div style="float: right;"><?php mosLoadModules ( 'banner', -1); ?></div>
	</div>
	</td>
  </tr>
  <tr>
    <td align="center" bgcolor="#ffffff" height="1"></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#ebebeb" height="35">
		  		<div id="buttons_outer">
		  		  <div id="buttons_inner">
						<div id="buttons">
<?php mosLoadModules ( 'user3', -1); ?>
						</div>
					</div>
		  		</div>
    </td>
  </tr>
</tbody></table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="820px">
  <tbody><tr>
	<td valign="top" width="160px">
		  		<div id="left_outer">
		  			<div id="left_inner">
		  			<?php mosLoadModules ( 'left', -2 ); ?>
		  			</div>
		  		</div>
	</td>
	<td valign="top">
		  		<div id="content_outer">
					<div id="content_inner">

						<?php mosPathway(); ?>
						<?php if (!$editmode and (mosCountModules('user1') or mosCountModules('user2'))) : ?>
							<table class="userblock" cellspacing="0" cellpadding="0" width="100%">
								<tr valign="top">
									<?php if (mosCountModules('user1')) : ?>
									<td class="user">
										<?php mosLoadModules('user1', -2); ?>
									</td>
									<?php endif; ?>
									<?php if (mosCountModules('user1') and mosCountModules('user2')) : ?>
									<td class="spacer">&nbsp;</td>
									<?php endif; ?>
									<?php if (mosCountModules('user2')) : ?>
									<td class="user">
										<?php mosLoadModules('user2', -2); ?>
									</td>
									<?php endif; ?>
								</tr>
							</table>
						<?php endif; ?>
						<?php if (!$editmode and (mosCountModules('user6'))): ?>
							<?php mosLoadModules('user6', -2); ?>
						<?php endif; ?>
						<?php if (!$editmode and (mosCountModules('user4') or mosCountModules('user5'))) : ?>
							<table class="userblock" cellspacing="0" cellpadding="0" width="100%">
								<tr valign="top">
									<?php if (mosCountModules('user4')) : ?>
									<td class="user" width="50%">
										<?php mosLoadModules('user4', -2); ?>
									</td>
									<?php endif; ?>
									<?php if (mosCountModules('user4') and mosCountModules('user5')) : ?>
									<td class="spacer">&nbsp;</td>
									<?php endif; ?>
									<?php if (mosCountModules('user5')) : ?>
									<td class="user" width="50%">
										<?php mosLoadModules('user5', -2); ?>
									</td>
									<?php endif; ?>
								</tr>
							</table>
						<?php endif; ?>
						<?php 
							if($_REQUEST['option'] && $_REQUEST['option'] != 'com_frontpage') {
								mosMainbody(); 
							}
						?>

					</div>
				</div>
	</td>
				<?php
				if ( $right > 0 ) {
				?>
	<td valign="top" width="160px">
				<div id="right_outer">
					<div id="right_inner">
					<?php mosLoadModules ( 'right', -2 ); ?>
					</div>
				</div>
	</td>
				<?php
				}
				?>
  </tr></tbody>
</table>
<div id="footer">
<?php echo "(C) 1999-" . date("Y") . ". Serasera Malagasy<br />Eugene Heriniaina - Tsiky dia ampy - Tel. +39 338 744 2412 (Italia)"; ?>
<?php
list($g_usec, $g_sec) = explode(" ",microtime());
define ("t_end", (float)$g_usec + (float)$g_sec);

$t_speed = t_end - t_start;

echo "<br />Page load : " . round($t_speed, 2) ;
?>
<?php mosLoadModules( 'debug', -1 );?>
</div>
</body></html>